><

Applying formatting filters to dynamic content



Adobe GoLive Dynamic Link lets you control how dynamic content based on currency, date, time, or other criteria is displayed on the live page. The formatting options available from the Filter pop-up menu's VBScript submenu are:

Filter name
Comments
Encode string as HTML
(HTMLEncode)
Formats dynamic content as HTML, letting you display HTML code on the client browser.
Encode URL string (URLEncode)
Formats dynamic content so it can be sent over the address line as a query string.
Format currency (FormatCurrency)
Formats dynamic content as currency, using the currency format specified in the server's Regional Settings control panel. If the setting is for dollars, all dynamic content formatted with the Currency filter is formatted as U.S. dollars. To format multiple currencies, apply the Currency filter to only one placeholder (the one with the same currency as the Regional Settings control panel) and format other currencies with the Number filter.
Format number (FormatNumber)
Formats dynamic content as a number.
Format percent
(FormatPercent)
Formats dynamic content as a percent.
Format date and time
(FormatDateTime)
Formats dynamic content as date or time.

In addition, you can format e-commerce dynamic content with the following filters available from the Filter pop-up menu's Microsoft E-Commerce submenu:

Filter name
Comments
Format money
(DataFunctions.Money)
Formats dynamic content as money.
Format number
(DataFunctions.Float)
Formats dynamic content as a number.
Format date
(DataFunctions.Date)
Formats dynamic content as a date.
Format date and time
(DataFunctions.DateTime)
Formats dynamic content as a date or time.
Format time
(DataFunctions.Time)
Formats dynamic content as a time.
Clean string
(DataFunctions.CleanString)
Formats dynamic content by stripping nonprinting characters (character codes 1- 29) or changing them to spaces (character code 32).

You can find detailed information about these formatting functions in the MSDN documentation available online at msdn.microsoft.com.

To format dynamic content, follow these steps:

1 Select placeholder text that is already bound to dynamic content.

2 Click the Binding Details tab.

3 Select the Filters option and choose the desired formatting filter from the VBScript or Microsoft E-Commerce submenu.

When you apply a filter format to a bound placeholder, additional options may appear that let you refine the format further. For example, Format Date and Time offers options for Long Date, Short Date, and so on.

Formatting filters only affect dynamic content. They have no impact on the appearance of your placeholders.

Note: Make sure that the formatting filter you select is appropriate to the type of dynamic content that replaces the placeholder. Choosing Format Date and Time for dynamic content that is neither date nor time results in an error message.


Using Dynamic Link > Adding dynamic content to pages > Applying formatting filters to dynamic content